package com.bluefish.bltuan.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bluefish.bltuan.dao.BusinesserDao;
import com.bluefish.bltuan.module.user.Businesser;
import com.bluefish.bltuan.service.BusinesserService;
import com.bluefish.bltuan.util.PageIndex;

@Service
@Transactional
public class BusinesserServiceImpl implements BusinesserService {

	private BusinesserDao businesserDao;
	
	public void setBusinesserDao(BusinesserDao businesserDao) {
		this.businesserDao = businesserDao;
	}

	public void save(Businesser t) {
		this.businesserDao.save(t);
	}

	public void update(Businesser t) {
		this.businesserDao.update(t);
	}

	public void delete(Businesser t) {
		this.businesserDao.delete(t);
	}

	public Businesser findById(Integer id) {
		return this.businesserDao.findById(id);
	}

	public List<Businesser> getAll(PageIndex pageIndex) {
		return this.businesserDao.list(pageIndex);
	}

	

}
